package cn.wolfcode.shop.cloud.web.feign;


import cn.wolfcode.shop.cloud.Result;
import cn.wolfcode.shop.cloud.domain.Good;
import cn.wolfcode.shop.cloud.web.feign.hystrix.GoodsFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(value = "goods-server",fallback = GoodsFeignHystrix.class)
public interface GoodsFeignApi {

    @RequestMapping("/queryGoods")
    public Result<List<Good>> queryGoods(@RequestParam("goodsIds") Set<Long> goodsIds);
}
